package com.example.javaproject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.javaproject.entity.Administrator;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdministratorMapper extends BaseMapper<Administrator> {
    @Select("SELECT * FROM administrator WHERE user_id = #{userId} AND is_deleted = 0")
    Administrator selectByUserId(Integer userId);
} 